﻿@{
    ViewData["Title"] = "Privacy Policy";
}
<h1>@ViewData["Title"]</h1>

<p>Use this page to detail your site's privacy policy.</p>

<div class="text-center">
    <input type="button" 
           class="btn-primary" 
           value="模拟更新账户信息后，用户需要重新登录" 
           onclick="handleUpdateAccount()"/>
</div>

@section Scripts {
<script type="text/javascript">
    $(function(){
        
    })

    function handleUpdateAccount(){
            $.ajax({
                url: "/Account/UpdateAccount",
                type: "post",
                success: function(res){
                    alert("账户信息更新成功，请重新登录");
                    location.href = '/Account/Login'
                }
            })
        }
</script>
}
